package org.jradweb.core.web;

import java.util.Map;
/**
 * 
 *
 * Created On 2008-6-25
 * @author <a href="mailto:wagzhi@gmail.com">Paul Wang</a>
 * @version $Id: UrlMapResolver.java 149 2008-10-10 03:10:10Z wagzhi $
 */
public interface UrlMapResolver {
	public static final int PAGE_TYPE_HTML=0;
	public static final int PAGE_TYPE_JS=1;
	/**
	 * return paramter's from uri
	 * @param requestUri requestUri get from request.getRequiestUri()
	 * @return
	 */
	public Map<String,String> getParamters(String requestUri);
	/**
	 * get servlet path by parameters
	 * @param params
	 * @return
	 * @deprecated
	 */
	public String getServletPath(Map<String,Object> params);
	public String getServletPath(Map<String,Object> params,int pageType);
	
	public String getUri(String contextPath, Map<String, Object> params,int pageType);
	/**
	 * @deprecated
	 * @param contextPath
	 * @param params
	 * @return
	 */
	public String getUri(String contextPath,Map<String,Object> params);

}
